﻿package com.flashframeless.audio {
	
	/* Original code, by André Anaya - www.andreanaya.com */
	
	import flash.events.Event;
	
	public class SoundControlEvent extends Event {
		public static var COMPLETE:String = "onComplete";
		public static var ITEM_COMPLETE:String = "onItemComplete";
		
		public static var PROGRESS:String = "onProgress";
		public static var CURRENT_PROGRESS:String = "onCurrentProgress";
		
		public var bytesLoaded:Number = -1;
		public var bytesTotal:Number = -1;
		public var message:String;
		
		public function SoundControlEvent(type:String, param:Object = null):void{
			super(type, bubbles, cancelable);
			for (var i:* in param){
				this[i] = param[i];
			}
		}
	}
	
}